package com.jeesite.modules.kj.file.service;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.file.dao.FileUploadDao;
import com.jeesite.modules.file.entity.FileUpload;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 文件上传Service
 * @author hzy
 * @version 2019-03-21
 */
@Service
@Transactional(readOnly=false)
public class KjFileUploadService extends CrudService<FileUploadDao, FileUpload> {
    /**
     * 获取单条数据
     * @param fileUpload
     * @return
     */
    @Override
    public FileUpload get(FileUpload fileUpload) {
        return super.get(fileUpload);
    }

    /**
     * 查询分页数据
     * @param fileUpload 查询条件
     * @return
     */
    @Override
    public Page<FileUpload> findPage(FileUpload fileUpload) {
        return super.findPage(fileUpload);
    }

    /**
     * 保存数据（插入或更新）
     * @param fileUpload
     */
    @Override
    @Transactional(readOnly=false)
    public void save(FileUpload fileUpload) {
        super.save(fileUpload);
    }

    /**
     * 更新状态
     * @param fileUpload
     */
    @Override
    @Transactional(readOnly=false)
    public void updateStatus(FileUpload fileUpload) {
        super.updateStatus(fileUpload);
    }

    /**
     * 删除数据
     * @param fileUpload
     */
    @Override
    @Transactional(readOnly=false)
    public void delete(FileUpload fileUpload) {
        super.delete(fileUpload);
    }


}
